package com.example.databinding.BaseObservable;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.example.databinding.R;
import com.example.databinding.viewModel.UserViewModel;
import com.example.databinding.databinding.ActivityTwoWayBinding;

public class TwoWayActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityTwoWayBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_two_way);
        binding.setUserViewModel(new UserViewModel());
    }
}